import {NgModule} from '@angular/core';
import {SharedModule} from '@kylin/shared';

import {HttpService} from './service/http.service';
import {AuthRouterService} from './service/auth-router.service';
import {ExportService} from './service/export.service';
import {AreaService} from './service/area.service';
import {RouterService} from './service/router.service';
import {CacheService} from './service/cache.service';
import {AmapLoaderService, MAP_API_CONFIG} from './service/amap-loader.service';
import {UploadFileService} from './service/upload-file.service';
import {TokenService} from './service/token.service';
import {AuthService} from './service/auth.service';

@NgModule({
    imports: [SharedModule],
    declarations: [],
    providers: [
        HttpService, AuthRouterService, RouterService,
        ExportService, AreaService,
        CacheService, AmapLoaderService,
        {
            provide: MAP_API_CONFIG, useValue: {apiKey: 'a90c55db7016457250109fb11c497d91', apiVersion: '1.4.15'}
        },
        UploadFileService,
        TokenService,
        AuthService
    ]
})
export class CoreModule {
}
